.class public Lcom/instagram/android/directshare/b/a/s;
.super Lcom/instagram/android/d/j/b;
.source "PostDirectShareCommentRequest.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/b",
        "<",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field private final a:Lcom/instagram/j/b;

.field private final e:Ljava/util/UUID;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/b;Lcom/instagram/android/d/j/a;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/support/v4/app/aj;",
            "Lcom/instagram/j/b;",
            "Lcom/instagram/android/d/j/a",
            "<",
            "Ljava/lang/Void;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 35
    invoke-static {}, Lcom/instagram/android/util/w;->a()I

    move-result v0

    invoke-direct {p0, p1, p2, v0, p4}, Lcom/instagram/android/d/j/b;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 36
    iput-object p3, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    .line 37
    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/directshare/b/a/s;->e:Ljava/util/UUID;

    .line 38
    return-void
.end method

.method private static a(Lcom/instagram/j/l;)Ljava/lang/String;
    .locals 4
    .parameter

    .prologue
    .line 74
    invoke-virtual {p0}, Lcom/instagram/j/l;->D()Lcom/instagram/j/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/j/f;->c()Ljava/util/List;

    move-result-object v0

    .line 75
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    invoke-interface {v0, v1}, Ljava/util/List;->listIterator(I)Ljava/util/ListIterator;

    move-result-object v1

    .line 77
    :cond_0
    invoke-interface {v1}, Ljava/util/ListIterator;->hasPrevious()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 78
    invoke-interface {v1}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/j/b;

    .line 79
    invoke-virtual {v0}, Lcom/instagram/j/b;->g()Lcom/instagram/j/d;

    move-result-object v2

    sget-object v3, Lcom/instagram/j/d;->f:Lcom/instagram/j/d;

    if-ne v2, v3, :cond_0

    invoke-virtual {v0}, Lcom/instagram/j/b;->d()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 81
    invoke-virtual {v0}, Lcom/instagram/j/b;->d()Ljava/lang/String;

    move-result-object v0

    .line 86
    :goto_0
    return-object v0

    :cond_1
    const-string v0, ""

    goto :goto_0
.end method


# virtual methods
.method public a()Lcom/instagram/android/d/b/a;
    .locals 1

    .prologue
    .line 42
    sget-object v0, Lcom/instagram/android/d/b/a;->a:Lcom/instagram/android/d/b/a;

    return-object v0
.end method

.method protected a(Lcom/instagram/android/d/b/c;)V
    .locals 2
    .parameter

    .prologue
    .line 62
    const-string v0, "comment_text"

    iget-object v1, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {v1}, Lcom/instagram/j/b;->e()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 63
    const-string v0, "client_request_uid"

    iget-object v1, p0, Lcom/instagram/android/directshare/b/a/s;->e:Ljava/util/UUID;

    invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 64
    const-string v0, "last_comment_id"

    iget-object v1, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {v1}, Lcom/instagram/j/b;->l()Lcom/instagram/j/l;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/android/directshare/b/a/s;->a(Lcom/instagram/j/l;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 65
    return-void
.end method

.method public a_(Lcom/instagram/android/d/j/j;)Z
    .locals 1
    .parameter

    .prologue
    .line 118
    const/4 v0, 0x0

    return v0
.end method

.method public synthetic b(Lcom/instagram/android/d/j/j;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 25
    invoke-virtual {p0, p1}, Lcom/instagram/android/directshare/b/a/s;->d(Lcom/instagram/android/d/j/j;)Ljava/lang/Void;

    move-result-object v0

    return-object v0
.end method

.method public c(Lcom/instagram/android/d/j/j;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Ljava/lang/Void;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 112
    iget-object v0, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/j/b;->a(ZLjava/lang/String;)V

    .line 113
    iget-object v0, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {v0}, Lcom/instagram/j/b;->l()Lcom/instagram/j/l;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/directshare/b/a/s;->p()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/j/l;->b(Landroid/content/Context;)V

    .line 114
    return-void
.end method

.method public d(Lcom/instagram/android/d/j/j;)Ljava/lang/Void;
    .locals 5
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Ljava/lang/Void;",
            ">;)",
            "Ljava/lang/Void;"
        }
    .end annotation

    .prologue
    const/4 v4, 0x0

    .line 91
    iget-object v0, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {v0}, Lcom/instagram/j/b;->g()Lcom/instagram/j/d;

    move-result-object v0

    .line 93
    iget-object v1, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {p1}, Lcom/instagram/android/d/j/j;->l()Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v2

    const-string v3, "comment"

    invoke-virtual {v2, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/j/b;->a(Lcom/fasterxml/jackson/databind/JsonNode;)V

    .line 95
    sget-object v1, Lcom/instagram/j/d;->e:Lcom/instagram/j/d;

    if-ne v0, v1, :cond_0

    .line 97
    invoke-virtual {p0}, Lcom/instagram/android/directshare/b/a/s;->p()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/directshare/b/a/s;->o()Landroid/support/v4/app/aj;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-static {v0, v1, v2, v4}, Lcom/instagram/android/feed/comments/b/c;->a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/b;Lcom/instagram/android/d/j/a;)V

    .line 107
    :goto_0
    return-object v4

    .line 104
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {v0}, Lcom/instagram/j/b;->l()Lcom/instagram/j/l;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/directshare/b/a/s;->p()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/j/l;->a(Landroid/content/Context;)V

    goto :goto_0
.end method

.method public d()Z
    .locals 1

    .prologue
    .line 47
    const/4 v0, 0x1

    return v0
.end method

.method public e()Z
    .locals 1

    .prologue
    .line 52
    const/4 v0, 0x1

    return v0
.end method

.method protected f()Ljava/lang/String;
    .locals 4

    .prologue
    .line 57
    const-string v0, "direct_share/%s/comment/"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/instagram/android/directshare/b/a/s;->a:Lcom/instagram/j/b;

    invoke-virtual {v3}, Lcom/instagram/j/b;->c()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Lcom/facebook/c/i/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
